// const inquirer = require('inquirer')
// const chalk = require('chalk');
// console.log(chalk.hex('#16A34A')('绿色'));
// const ora = require('ora');
// const { success, greenText } = require('./log');
// const spinner = ora(greenText('downloading template'))
//     spinner.color = 'yellow'
// spinner.start()
// // let timer = setInterval(()=>{

const path = require("path");

// // },1000)
// setTimeout(()=>{
//     // clearInterval(timer);
//     spinner.succeed('获取成功');
// },10000)

let urls = require("url").format({
  pathname: path.join(__dirname, "index.html"),
  protocol: 'file',
  slashes: true,
  hash: '/'
})
console.log('---urls--', urls);